package com.bw.goods.mvvm.model;

import com.bw.mvvm_common.entity.BaseEntity;
import com.bw.mvvm_common.mvvm.model.BaseModel;
import com.bw.mvvm_common.network.HttpEnum;
import com.bw.mvvm_common.network.HttpFactory;

import java.util.HashMap;

import io.reactivex.Observable;

public class HomeModel extends BaseModel {

    //获取推荐商品
    public Observable<BaseEntity>requestGoods(HashMap<String,Object>map){
        return changeFunc(HttpFactory.create(HttpEnum.TokenSign).getRetrofit()
                .create(Api.class).requestHomeGoods(createBody(map)));
    }

}
